<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <script src="jQuery学习/jquery-1.11.3.min.js"></script>
 </head>
 <body>
    <div></div>
 </body>
 <script>
	//在获取的div元素上以键值对的形式存储数据
	$("div").data("name","div1");

	//获取div上以键值对存储的数据
	console.log($("div").data("name"));  //div1

	//移除div上以键值对存储的数据
	$("div").removeData("name");
	console.log($("div").data("name"));  //undefined
 </script>
</html>
